package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.system.entity.TApplication;
import cn.stylefeng.guns.modular.system.model.params.TApplicationParam;
import cn.stylefeng.guns.modular.system.model.result.TApplicationResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 *  退款申请
 * </p>
 *
 * @author yl
 * @since 2019-07-09
 */
public interface TApplicationService extends IService<TApplication> {

    /**
     * 新增
     *
     * @author yl
     * @Date 2019-07-09
     */
    void add(TApplicationParam param);

    /**
     * 删除
     *
     * @author yl
     * @Date 2019-07-09
     */
    void delete(TApplicationParam param);

    /**
     * 更新
     *
     * @author yl
     * @Date 2019-07-09
     */
    void update(TApplicationParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author yl
     * @Date 2019-07-09
     */
    TApplicationResult findBySpec(TApplicationParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author yl
     * @Date 2019-07-09
     */
    List<TApplicationResult> findListBySpec(TApplicationParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author yl
     * @Date 2019-07-09
     */
     LayuiPageInfo findPageBySpec(TApplicationParam param);


    /**
     * 退款表关联订单表连接查询
     * @return
     */
    List<TApplication> QueryListLiftJoin(@Param("condition") String condition);


    /**
     * 查询详情
     */
    TApplication QueryId(@Param("id") String id);




    /**
     * 修改接口
     */
    String UpdateApplicationId(@Param("type")String type, @Param("remoney")String remoney, @Param("enclosu")String enclosu, @Param("order_id")String order_id, @Param("remarks")String remarks, @Param("id")Integer id);


    TApplication getByProcessInstanceId(String processInstanceId);
}
